package com.yy.wga.wechat.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.wechat.feign.api.config.WechatFeignRequestInterceptor;
import com.yy.wga.wechat.feign.request.WechatQrCodeGetReq;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 微信小程序码
 *
 * @author guochao
 * @since 2024-12-10 22:41:43
 */
@FeignClient(name = "WechatMpFeign", url = "https://wga-api.xianrcj.com/api/wechat/qrCode/",
        configuration = WechatFeignRequestInterceptor.class)
public interface WechatQrCodeFeign {
    /**
     * 获取小程序码
     *
     * @param request WechatQrCodeGetReq
     * @return String
     */
    @PostMapping("getQrCode")
    Result<String> getQrCode(@RequestBody @Valid WechatQrCodeGetReq request);

}
